SDK/J Authentication Package ver1.0
RICOH Confidential

jp.co.ricoh.dsdk.scard.option.file
Interface FileInfo


public interface FileInfo

Provides information about the structure of a file.


Method Summary
 byte[] getHeader()
           Returns the file header.
 FileID getID()
           Gets the FileID object.
 int getRecordSize()
           Gets the size of a record of the file.
 int getSize()
           Gets the number of bytes in the file.
 boolean isBinary()
           Tests whether the file is a binary file.
 boolean isCyclic()
           Tests whether the file is a cyclic file.
 boolean isDirectory()
           Tests whether the file is a DF.
 boolean isFixed()
           Tests whether the file is a fixed record file.
 boolean isValidate()
           Tests whether the card is valid.
 boolean isVariable()
           Tests whether the file is a variable record file.
 

Method Detail

getID

public FileID getID()
Gets the FileID object.

Returns:
the FileID object.

getSize

public int getSize()
Gets the number of bytes in the file.

Returns:
the number of bytes in the file.

getRecordSize

public int getRecordSize()
Gets the size of a record of the file.

Returns:
the size of a record of the file.

isCyclic

public boolean isCyclic()
Tests whether the file is a cyclic file.

Returns:
true if the file is a cyclic file.

isDirectory

public boolean isDirectory()
Tests whether the file is a DF.

Returns:
true if the file is a DF.

isBinary

public boolean isBinary()
Tests whether the file is a binary file.

Returns:
true if the file is a binary file.

isVariable

public boolean isVariable()
Tests whether the file is a variable record file.

Returns:
true if the file is a structured file with variable record size.

getHeader

public byte[] getHeader()
Returns the file header. This method actually returns the card's response (or expected response) to a selection of the file.

Returns:
the file header, or null if not supported.

isValidate

public boolean isValidate()
Tests whether the card is valid.

Returns:
true if the card is valid.

isFixed

public boolean isFixed()
Tests whether the file is a fixed record file.

Returns:
when this file is a fixed record file, return true.

SDK/J Authentication Package ver1.0
RICOH Confidential